/*    */
package com.liang.nansheng.common.auth;
/*    */
/*    */

import java.io.Serializable;
/*    */ import java.util.List;

/*    */
/*    */ public class UserRightsDTO
        /*    */ implements Serializable
        /*    */ {
    /*    */   private Long userId;
    /*    */   private String userName;
    /*    */   private List<RoleSsoDTO> roles;
    /*    */   private static final long serialVersionUID = 1L;

    /*    */
    /*    */
    public Long getUserId()
    /*    */ {
        /* 17 */
        return this.userId;
        /*    */
    }

    /*    */
    /*    */
    public String getUserName() {
        /* 21 */
        return this.userName;
        /*    */
    }

    /*    */
    /*    */
    public List<RoleSsoDTO> getRoles() {
        /* 25 */
        return this.roles;
        /*    */
    }

    /*    */
    /*    */
    public void setUserId(Long userId)
    /*    */ {
        /* 12 */
        this.userId = userId;
    }

    /* 12 */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /* 12 */
    public void setRoles(List<RoleSsoDTO> roles) {
        this.roles = roles;
    }

    /* 12 */
    public boolean equals(Object o) {
        if (o == this) return true;
        if (!(o instanceof UserRightsDTO)) return false;
        UserRightsDTO other = (UserRightsDTO) o;
        if (!other.canEqual(this)) return false;
        Object this$userId = getUserId();
        Object other$userId = other.getUserId();
        if (this$userId == null ? other$userId != null : !this$userId.equals(other$userId)) return false;
        Object this$userName = getUserName();
        Object other$userName = other.getUserName();
        if (this$userName == null ? other$userName != null : !this$userName.equals(other$userName)) return false;
        Object this$roles = getRoles();
        Object other$roles = other.getRoles();
        return this$roles == null ? other$roles == null : this$roles.equals(other$roles);
    }

    /* 12 */
    protected boolean canEqual(Object other) {
        return other instanceof UserRightsDTO;
    }

    /* 12 */
    public int hashCode() {
        int PRIME = 59;
        int result = 1;
        Object $userId = getUserId();
        result = result * 59 + ($userId == null ? 43 : $userId.hashCode());
        Object $userName = getUserName();
        result = result * 59 + ($userName == null ? 43 : $userName.hashCode());
        Object $roles = getRoles();
        result = result * 59 + ($roles == null ? 43 : $roles.hashCode());
        return result;
    }

    /* 12 */
    public String toString() {
        return "UserRightsDTO(userId=" + getUserId() + ", userName=" + getUserName() + ", roles=" + getRoles() + ")";
    }
    /*    */
    /*    */
}

/* Location:           C:\maven\maven3.5\maven3.5\repositor\io\github\maliangnansheng\nansheng-common\3.3.4\nansheng-common-3.3.4.jar
 * Qualified Name:     com.liang.nansheng.common.auth.UserRightsDTO
 * JD-Core Version:    0.6.2
 */